package jacquesh.simple.rpc.test.server;

import net.jacqeush.mini.rpc.annotation.RpcComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jacquesh
 * @version 1.0
 * @date 2020/10/22 0:47
 */
@RpcComponentScan(basePackages = "jacquesh.simple.rpc.test.server.impl")
@SpringBootApplication
@RestController
public class Appincation {
    public static void main(String[] args) {
    		SpringApplication.run(Appincation.class, args);
    }
    @GetMapping("/")
    public String index(){
        return "index";
    }
}
